﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Fodee
{
    public partial class Lock : BaseForm
    {
        public Lock()
        {
            InitializeComponent();
        }

        private void txtOnLock_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Enter)
            {
                if (txtOnLock.Text == "")
                {
                    ((MainForm)this.Owner).IsLockEnter = true;
                    this.Close();
                }
            }
        }
    }
}